<!DOCTYPE html>
<html>
<head>
	<title>收藏窗口</title>
	<meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />
</head>
<style type="text/css">
.aui-bar {padding-top: 20px;}
</style>
<body>
<header id="header" class="aui-bar aui-bar-nav">
    <a class="aui-pull-left aui-btn" onclick="closeWin();">
        <span class="aui-iconfont aui-icon-left">取消</span>
    </a>
    <div class="aui-title">选择管理员</div>
		<span onclick="selectUsers();" style="float:right;margin-right:0.75rem;">确认</span>

</header>

<script type="text/javascript" src="../script/api.js" ></script>
<script type="text/javascript">
    apiready = function(){
        var header = $api.byId('header');
        var headerOffset = $api.offset(header);

        api.parseTapmode();
        api.openFrame ({
            name: 'workflow_add_mail',
            url: 'workflow_add_mail_frm.html',
            rect:{
                x:0,
                y:headerOffset.h,
                w:'auto',
                h:api.frameHeight-headerOffset.h
            },
            bounces:true,
            vScrollBarEnabled:false,
            hScrollBarEnabled:false
        });

    }

	function selectUsers(){
		api.execScript({
			frameName: 'workflow_add_mail',
			script: 'selectUsers();'
		});
		// api.closeWin();
	}

    function closeWin() {
        api.closeWin();
        $api.setStorage("selectUserBack", "");
        $api.setStorage("selectorID", "");
    }
</script>
</body>
</html>
